package 集合;

import java.util.ArrayList;
import java.util.HashMap;

public class Test2 {
    public static void main(String[] args) {
    	ArrayList<HashMap<String, Object>> listData = new ArrayList<HashMap<String, Object>>();
    	  int number = 0;
    	  String name;
		  String user;
    	 while (number < 20) {
    	       HashMap<String, Object> map = new HashMap<String, Object>();    
    	       if(number==19)
 		      {
 		          name ="zcl";
 		          user ="ewfe";
 		      } else{
 		           name ="hehe";
 		           user ="lailai";
 		      }
    	      map.put("name",name);
    	      map.put("user",user);
    	      listData.add(map);
    	      number++;
    	     System.out.println(listData);
    	}
	}
}